namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PLAN_PRODUCTION")]
    public partial class PLAN_PRODUCTION
    {
        //[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PLAN_PRODUCTION()
        {
            //PLAN_PRODUCTION_DEMAND = new HashSet<PLAN_PRODUCTION_DEMAND>();
            PLAN_PURCHASE = new HashSet<PLAN_PURCHASE>();
        }

        [Key]
        [StringLength(40)]
        public string PRODUCTION_ID { get; set; }

        public decimal? YEAR { get; set; }

        public decimal? MONTH { get; set; }

        public int? TYPE { get; set; }

        [StringLength(40)]
        public string COMPILE_USER { get; set; }

        public DateTime? COMPILE_TIME { get; set; }

        [StringLength(40)]
        public string TEMPLATE_ID { get; set; }

        public int? APPROVAL_STATUS { get; set; }

        public SysUser COMPILE_SYSUSER { get; set; }

        //public ICollection<PLAN_PRODUCTION_DEMAND> Production_Demand { get; set; }
        //[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        //public virtual ICollection<PLAN_PRODUCTION_DEMAND> PLAN_PRODUCTION_DEMAND { get; set; }

        //[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PLAN_PURCHASE> PLAN_PURCHASE { get; set; }

       
    }
}
